stage3-run:
	swift run --skip-update --vv

swift-build:
	swift build -vv --static-swift-stdlib --scratch-path bin -c release


#  force me understand the feature of swift build system
add-deps:
	swift package add-dependency https://github.com/vapor/vapor  --branch main
	swift package add-dependency https://github.com/apple/swift-nio  --branch main
	swift package add-dependency https://github.com/vapor/fluent-sqlite-driver --branch main
	swift package add-dependency https://github.com/vapor/fluent --branch main

add-target-deps:
	swift package add-target-dependency Vapor sv --package vapor
	swift package add-target-dependency NIOCore sv --package swift-nio
	swift package add-target-dependency NIOPosix sv --package swift-nio
	swift package add-target-dependency FluentSQLiteDriver sv --package fluent-sqlite-driver
	swift package add-target-dependency Fluent sv --package fluent